package com.wyy.dao;

import com.wyy.bean.Student;

import java.util.List;

/**
 * @ClassName StudentDao
 * @Description //TODO
 * @Author wky
 * @Date 2021/9/12 14:50
 * @Version 1.0
 **/
public interface StudentDao {
    
    public List<Student> getStudents(String name,String stuno,int sex,int pageIndex,int pageSize);
    
    //获取总条数
    public int total(String name,String stuno,int sex);
    
    //新增学生
    public int insertStu(Student student);
    
    //主键查询学生
    public Student findById(int sid);
    
    //学号查询学生
    public Student findByStuNo(String stuNo);
    
    //修改学生
    public int updateStu(Student student);
    
    //删除学生
    public int delStu(String sid);
    
}
